// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using System;
using NUnit.Framework;
using ValidationAspects.Configuration;

namespace TestValidationAspects.Configuration
{
	[TestFixture]
	public class TestValidationConfigurationException
	{
		[Test]
		public void Test_string_Constructor()
		{
			Assert.AreEqual("message", new ValidationConfigurationException("message").Message);
		}

		[Test]
		public void Test_string_exception_Constructor()
		{
			Exception inner = new Exception();
			ValidationConfigurationException exception = new ValidationConfigurationException("message", inner);

			Assert.AreEqual("message", exception.Message);
			Assert.AreSame(inner, exception.InnerException);
		}
	}
}